﻿<ContentControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:lc="clr-namespace:Wintellect.LiveFx.Cloudboard"
  xmlns:system="clr-namespace:System;assembly=mscorlib"
	mc:Ignorable="d"
	x:Class="Wintellect.LiveFx.Cloudboard.Hyperlink"
	d:DesignWidth="320" d:DesignHeight="60" Cursor="Hand">
  <ContentControl.Resources>
    <Style TargetType="{x:Type TextBlock}">
      <Setter Property="TextDecorations" Value="Underline"/>
    </Style>
    <Style x:Key="underlinedText" TargetType="{x:Type TextBlock}">
      <Setter Property="TextDecorations" Value="Underline"/>
    </Style>
    <SolidColorBrush x:Key="hyperlinkBorder" Color="Blue" />
    <DataTemplate x:Key="textTemplate" DataType="{x:Type system:String}">
      <TextBlock
        Height="23"
        Margin="3,2"
        Style="{StaticResource underlinedText}"
        Text="{Binding}"/>
    </DataTemplate>
    <lc:HyperlinkDataTemplateSelector x:Key="hyperlinkDataTemplateSelector"/>
  </ContentControl.Resources>
  <ContentControl.ContentTemplateSelector>
    <Binding Source="{StaticResource hyperlinkDataTemplateSelector}"/>
  </ContentControl.ContentTemplateSelector>
  <ContentPresenter/>
</ContentControl>